import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 CrrMaterialScrapReport 分页列表
 */
export function getCrrMaterialScrapReportPagination(data: any) {
  return axios.get(`${context}/crrMaterialScrapReport/pagination`, {
    params: data,
  })
}

/**
 * 获取 CrrMaterialScrapReport 所有数据
 */
export function getCrrMaterialScrapReportAllList(data: any) {
  return axios.get(`${context}/crrMaterialScrapReport/allList`, {
    params: data,
  })
}

/**
 * 获取 CrrMaterialScrapReport 详情
 */
export function getCrrMaterialScrapReportDetailById(id: any) {
  return axios.get(`${context}/crrMaterialScrapReport/${id}`, {
    params: { id },
  })
}

/**
 * 新增 CrrMaterialScrapReport
 */
export function addCrrMaterialScrapReport(data: any) {
  return axios.post(`${context}/crrMaterialScrapReport`, data)
}

/**
 * 修改 CrrMaterialScrapReport
 */
export function updateCrrMaterialScrapReport(data: any) {
  return axios.put(`${context}/crrMaterialScrapReport`, data)
}

/**
 * 删除 CrrMaterialScrapReport
 */
export function batchRemoveCrrMaterialScrapReport(data: any) {
  return axios.post(`${context}/crrMaterialScrapReport/batchRemove`, data)
}
